xend: don't drop device config on domain start failure
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:42:37 +0000 (09:42 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:42:37 +0000 (09:42 +0100)
commit77af399e7ff34b3978f5271843e38bce1d66077d
treef535cf8b494cf14c097428567c5fee536b403627
parentaf277a631b2c0f47c030cf6f8017ba70cb814a20
xend: don't drop device config on domain start failure

If domain creation in xend fails before devices are configured, e.g.
insufficient memory, device config is dropped from xend's managed
domain config.

Once xend is restarted, the domain's devices are lost.

This patch fixes a bug in XendConfig where only the device
controller was consulted for device configuration.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendConfig.py